package com.vanke.devops.domain.manager.docker.extend.command.impl;

import com.github.dockerjava.api.command.DockerCmdSyncExec;
import com.github.dockerjava.core.command.AbstrDockerCmd;
import com.vanke.devops.domain.manager.docker.extend.command.InspectServiceCmd;
import com.vanke.devops.domain.manager.docker.extend.model.Service;

/**
 * @author 陈景阳
 * @since 2018/6/8
 */
public class InspectServiceCmdImpl extends AbstrDockerCmd<InspectServiceCmd,Service> implements InspectServiceCmd {

    private String serviceId;

    public InspectServiceCmdImpl(DockerCmdSyncExec<InspectServiceCmd, Service> exec) {
        super(exec);
    }

    @Override
    public String getServiceId() {
        return serviceId;
    }

    @Override
    public InspectServiceCmd withServiceId(String serviceId) {
        this.serviceId = serviceId;
        return this;
    }
}
